﻿// -----------------------------------------------------------------------
// <copyright file="AppNinjectModule.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace mmonkey.Modules
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using mmonkey.ViewModels;
    using Ninject;
    using Ninject.Modules;
    using GalaSoft.MvvmLight;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class AppNinjectModule : NinjectModule
    {
        public override void Load()
        {
            // bind view models
            Bind<MainViewModel>().ToSelf();
            Bind<ICleanup>().ToMethod(ctx => ctx.Kernel.Get<MainViewModel>());
        }
    }
}
